package dymnd.ui;

//import javax.swing.*;
//import javax.swing.filechooser.*;
import java.io.File;
public class PNGFileFilter extends DymndFileFilter	{

	public PNGFileFilter()	{
		super();
	}
	
	public boolean accept(File f)	{
		if(f.isDirectory())
			return true;
		String[] fileTypes = {".png"}; 
		
		for(int i = 0; i < fileTypes.length; i++)	{
			if(f.toString().toLowerCase().endsWith(fileTypes[i]))
				return true;
		}
		
		return false;
	}
	
	public String getDescription()	{
		return "Portable Network Graphics (*.png)";
	}
	
	public String getExtension()	{
		return ".png";
	}
	
}
